﻿@{
    Layout = null;
}

<!DOCTYPE html>


<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Index</title>
    <link href="~/Content/BootstrapSouce/css/bootstrap.css" rel="stylesheet" />
    <script src="~/Content/BootstrapSouce/js/jquery.min.js"></script>
    <script src="~/Content/BootstrapSouce/js/bootstrap.min.js"></script>
    <link href="~/Content/jquery-easyui-1.5.2/themes/default/easyui.css" rel="stylesheet" />
    <link href="~/Content/jquery-easyui-1.5.2/themes/icon.css" rel="stylesheet" />
    <script src="~/Content/jquery-easyui-1.5.2/jquery.easyui.min.js"></script>
    
        <style>
        img {
            width: 180px;
            height: 220px;
        }
    </style>
    
</head>
<body>
    <div class="easyui-layout" style="width:100%;height:800px;">
        <div data-options="region:'center'" title="详情" style="width:100%;height:500px">
            <div class="row" style="height:50px"></div>
            <div class="row">
                <div class="col-md-12" style="height:600px;background-color:white">
                    <ul id="mytab" class="nav nav-tabs">
                        <li class="active"><a data-toggle="tab" href="#basic" onclick="basic(@ViewBag.id)">基本信息</a></li>
                        <li><a data-toggle="tab" href="#location" onclick="locations(@ViewBag.id)">区位状况</a></li>
                        <li><a data-toggle="tab" href="#qu" onclick="quw(@ViewBag.id)">小区状况</a></li>
                        <li><a data-toggle="tab" href="#Publics" onclick="publics(@ViewBag.id)">建筑物公共部分</a></li>
                        <li><a data-toggle="tab" href="#inoors" onclick="inoor(@ViewBag.id)">户内部分</a></li>
                        <li><a data-toggle="tab" href="#photos" onclick="photo(@ViewBag.id)">现场照片</a></li>
                        <li><a data-toggle="tab" href="#layers" onclick="layer(@ViewBag.id)">询价记录</a></li>
                        @if (ViewBag.idd > 3)
                        {
                            <li><a data-toggle="tab" href="#shen">审核详情</a></li>
                        }
                    </ul>
                    <div id="tabcontent" class="tab-content">
                        <div class="tab-pane fade  active" id="basic" style="width:90%">
                            <table id="tabbasic">
                                <tr>
                                    <td>项目号</td>
                                    <td><input class="easyui-textbox" id="basicinfo" style="width:100%" ></td>
                                </tr>
                                <tr>
                                    <td>借款人姓名</td>
                                    <td><input class="easyui-textbox" id="basic_LoName" style="width:100%"></td>
                                </tr>
                                <tr>
                                    <td>借款人电话</td>
                                    <td><input class="easyui-textbox" id="basic_LoTel" style="width:100%"></td>
                                </tr>
                                <tr>
                                    <td>看房联系人</td>
                                    <td><input class="easyui-textbox" id="loan_Contacts" style="width:100%"></td>
                                </tr>
                                <tr>
                                    <td>联系人电话</td>
                                    <td><input class="easyui-textbox" id="loan_ContactsTEL" style="width:100%"></td>
                                </tr>
                                <tr>
                                    <td>贷款年限</td>
                                    <td><input class="easyui-textbox" id="surplus_Years" style="width:100%"></td>
                                </tr>
                                <tr>
                                    <td>借款额度</td>
                                    <td><input class="easyui-textbox" id="basic_Quota" style="width:100%"></td>
                                </tr>
                                <tr>
                                    <td>实际交易价</td>
                                    <td><input class="easyui-textbox" id="basic_Total" style="width:100%"></td>
                                </tr>
                                <tr>
                                    <td>房屋坐落</td>
                                    <td><input class="easyui-textbox" id="house_Located" style="width:100%"></td>
                                </tr>
                                <tr>
                                    <td>房屋用途</td>
                                    <td><input class="easyui-combobox" id="house_Purpose" style="width:100%"></td>
                                </tr>
                                <tr>
                                    <td>建成年代</td>
                                    <td><input class="easyui-textbox" id="house_Time" style="width:100%"></td>
                                </tr>
                                <tr>
                                    <td>年代来源</td>
                                    <td><input class="easyui-combobox" id="yers_Source" style="width:100%"></td>
                                </tr>
                                <tr>
                                    <td>报告类型</td>
                                    <td><input class="easyui-combobox" id="presentation_Type" style="width:100%"></td>
                                </tr>
                                <tr>
                                    <td>评估手里</td>
                                    <td><input type="checkbox" name="assessment" value="40001">审核评估登记表<input type="checkbox" name="assessment" value="40002">房产证</td>
                                </tr>
                                <tr>
                                    <td>所属部门</td>
                                    <td><input class="easyui-textbox" id="the_Department" style="width:100%"></td>
                                </tr>
                                <tr>
                                    <td>勘察人</td>
                                    <td><input class="easyui-textbox" id="survey" style="width:100%"></td>
                                </tr>
                                <tr>
                                    <td>评估人</td>
                                    <td><input class="easyui-textbox" id="evaluation" style="width:100%"></td>
                                </tr>
                                <tr>
                                    <td>通知单出具日期</td>
                                    <td><input class="easyui-textbox" id="issue_Time" style="width:100%"></td>
                                </tr>
                                <tr>
                                    <td>登记时间</td>
                                    <td><input class="easyui-textbox" id="basic_CreateTime" style="width:100%"></td>
                                </tr>
                            </table>
                        </div>
                        <div class="tab-pane fade  active" id="location">
                            <table class="table table-striped">
                                <tr><td>小区四至-东至</td>><td><input type="text" id="location_East" /></td></tr>
                                <tr><td>小区四至-南至</td>><td><input type="text" id="location_South" /></td></tr>
                                <tr><td>小区四至-西至</td>><td><input type="text" id="location_West" /></td></tr>
                                <tr><td>小区四至-北至</td>><td><input type="text" id="location_North" /></td></tr>
                                <tr><td>位置环绕</td>><td><select id="Position"><option value="1">二环内</option><option value="2">三环内</option><option value="3">四环内</option><option value="4">五环外</option></select></td></tr>
                                <tr><td>交通情况</td>><td><input type="text" id="location_Traffic" /></td></tr>
                                <tr><td>交通便捷度</td>><td><select id="location_Convenient"><option value="1">便捷</option><option value="2">一般</option><option value="3">拥堵</option></select></td></tr>
                                <tr><td>自然人文环境情况</td><td><input type="text" id="location_Humanity" /></td></tr>
                                <tr><td>自然人文环境质量</td>><td><select id="location_Quality"><option value="1">优良</option><option value="2">一般</option><option value="3">低下</option></select></td></tr>
                                <tr><td>居住社区情况</td>><td><input type="text" id="location_Community" /></td></tr>
                                <tr><td>居住社区成熟度</td>><td><select id="location_Mature"><option value="1">已建好,入住情况稳定</option><option value="2">部分楼栋正在施工</option><option value="3">个别楼栋能入住</option></select></td></tr>
                                <tr><td>基础设施配套情况</td>><td><input type="text" id="location_Facilities" /></td></tr>
                                <tr><td>基础设施配套度</td>><td><select id="location_Degree"><option value="1">七通一平</option><option value="2">六通一平</option><option value="3">五通一平</option></select></td></tr>
                                <tr><td>配套设置</td>><td><select id="location_Supporting"><option value="1">规模大,设备齐全</option><option value="2">中等规模小区.设备齐全</option><option value="3">小型小区,设备老旧</option></select></td></tr>
                                <tr><td>有关说明</td>><td><textarea id="location_Explain" style="width:300px;height:60px;"></textarea></td></tr>
                            </table>
                        </div>
                        <div class="tab-pane fade  active" id="qu">
                            <table class="table table-striped">
                                <tr><td>项目案名</td>><td><input type="text" id="village_CaseName" /></td></tr>
                                <tr><td>来源</td>><td><select id="village_Cause"><option value="1">证载</option><option value="2">补办</option><option value="3">合法</option></select></td></tr>
                                <tr><td>小区封闭性</td>><td><select id="village_Close"><option value="1">封闭居住区</option><option value="2">半封闭居住区</option><option value="3">公开居住区</option></select></td></tr>
                                <tr><td>居住小区楼宇结构</td>><td><select id="village_Structure"><option value="1">高层住宅小区</option><option value="2">中等住宅小区</option><option value="3">一般住宅小区</option></select></td></tr>
                                <tr><td>交通组织方式</td>><td><select id="village_Traffic"><option value="1">人车分流</option><option value="2">人车公行</option><option value="3">不管</option></select></td></tr>
                                <tr><td>景观及绿化</td>><td><select id="village_Green"><option value="1">不错</option><option value="2">一般</option><option value="3">较差</option></select></td></tr>
                                <tr><td>容积率</td>><td><select id="village_Volume"><option value="1">大于1</option><option value="2">大于2</option><option value="3">大于3</option></select></td></tr>
                                <tr><td>车位状况</td>><td><select id="village_Parking"><option value="1">专用停车位</option><option value="2">公共停车位</option><option value="3">没有</option></select></td></tr>
                                <tr><td>物业公司</td>><td><select id="village_Property"><option value="1">专业公司</option><option value="2">地产商</option><option value="3">保安</option></select></td></tr>
                                <tr><td>其他</td>><td><textarea id="village_Explain" style="width:300px;height:60px;"></textarea></td></tr>
                            </table>
                        </div>
                        <div class="tab-pane fade  active" id="Publics">
                            <div data-options="region:'center',title:'Center'">
                                <div class="easyui-panel" title="New Topic" style="width:100%;padding:30px 60px;">
                                    <form id="ff" method="post">

                                        <div style="margin-bottom:20px">

                                            <input class="easyui-textbox" id="Name" style="width:100%" data-options="label:'所在楼号:',required:true">
                                        </div>
                                        <div style="width:100%;height:400px">
                                            <div style="float:left;width:5%;margin-top:350px"><a class="easyui-linkbutton" id="sure">确定坐标</a></div>
                                            <div id="map" style="width:95%;height:400px;float:left"></div>
                                        </div>
                                        <div style="margin-bottom:20px">
                                            <input class="easyui-textbox" id="subject" style="width:100%" data-options="label:'定位坐标:',required:true">
                                        </div>
                                        <div style="margin-bottom:20px">
                                            <input class="easyui-textbox" id="locationss" style="width:100%" data-options="label:'地处位置:'">
                                        </div>
                                        <div style="margin-bottom:20px">
                                            <select class="easyui-combobox" id="jiegou" label="房屋结构" style="width:100%"></select>
                                        </div>
                                        <div style="margin-bottom:20px">
                                            <select class="easyui-combobox" id="type" label="建筑类型" style="width:100%"></select>
                                        </div>
                                        <div style="margin-bottom:20px">
                                            <select class="easyui-combobox" id="outs" label="外墙面装饰" style="width:100%"></select>
                                        </div>
                                        <div style="margin-bottom:20px">
                                            <select class="easyui-combobox" id="publics" label="公共部位装饰" style="width:100%"></select>
                                        </div>
                                        <div style="margin-bottom:20px">
                                            <select class="easyui-combobox" id="dt" label="电梯" style="width:100%"></select>
                                            <input class="easyui-numberbox" id="number" label="数量" min="1" max="8" precision="0" />
                                        </div>
                                        <div style="margin-bottom:20px">
                                            <select class="easyui-combobox" id="qi" label="供气" style="width:100%"></select>
                                        </div>
                                        <div style="margin-bottom:20px">
                                            <select class="easyui-combobox" id="water" label="供水" style="width:100%"></select>
                                        </div>
                                        <div style="margin-bottom:20px">
                                            <select class="easyui-combobox" id="nuan" label="供暖" style="width:100%"></select>
                                        </div>
                                        <div style="margin-bottom:20px">
                                            <select class="easyui-combobox" id="door" label="门禁系统" style="width:100%"></select>
                                        </div>
                                        <div style="margin-bottom:20px">
                                            <select class="easyui-textbox" id="others" label="其他" style="width:100%" multiline="true"></select>
                                        </div>
                                    </form>

                                </div>
                            </div>
                        </div>
                        <div class="tab-pane fade  active" id="inoors">
                            <table class="table table-striped">
                                <tr><td>房屋实际用途:<select id="indoor_Purpose"><option value="1">住宅</option><option value="2">租房</option><option value="3">海景房</option></select></td></tr>

                                <tr><td>总楼层:<input type="text" id="indoor_LayerNum" /></td></tr>

                                <tr><td>所在楼层:<input type="text" id="indoor_Layer" /></td></tr>

                                <tr><td>朝向:<select id="indoor_Orientation"><option value="1">东</option><option value="2">西</option><option value="3">南</option><option value="4">北</option></select></td></tr>

                                <tr><td>住在类型:<select id="indoor_Residence"><option value="1">平层</option><option value="2">断层</option><option value="3">上下层</option></select></td></tr>

                                <tr><td>户型:<input type="text" id="HuXing" style="width:45px" />卧室:<input type="text" id="indoor_Bedroom" style="width:45px" />客厅:<input type="text" id="indoor_Hall" style="width:45px" />卫生间:<input type="text" id="indoor_Toilet" style="width:45px" />厨房:<input type="text" id="indoor_Kitchen" style="width:45px" />阳台:<input type="text" id="indoor_Balcony" style="width:45px" />露台:<input type="text" id="indoor_Terrace" style="width:45px" />小院:<input type="text" id="indoor_Yard" style="width:45px" /></td></tr>

                                <tr><td>客厅装修程度:<select id="indoor_HallDegree"><option value="1">普通装修</option><option value="2">精美壮美</option></select></td></tr>
                                <tr><td>客厅装修情况  :   内墙:    <input type="checkbox" name="living_Wall" value="1" />涂料&nbsp; &nbsp;<input type="checkbox" name="living_Wall" value="2" />壁纸&nbsp; &nbsp;<input type="checkbox" name="living_Wall" value="3" />石材&nbsp; &nbsp;其他<input type="text" id="livingWall_Other" />&nbsp; &nbsp;</td></tr>
                                <tr><td>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; 顶棚:    <input type="checkbox" name="living_Ceiling" value="1" />涂料&nbsp; &nbsp;<input type="checkbox" name="living_Ceiling" value="2" />吊顶&nbsp; &nbsp;其他<input type="text" name="livingCeiling_Other" />&nbsp; &nbsp;</td></tr>
                                <tr><td>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;  地面:    <input type="checkbox" name="living_Ground" value="1" />瓷砖&nbsp; &nbsp;<input type="checkbox" name="living_Ground" value="2" />地砖&nbsp; &nbsp;<input type="checkbox" name="living_Ground" value="3" />石材&nbsp; &nbsp;其他<input type="text" id="livingGround_Other" />&nbsp; &nbsp;</td></tr>


                                <tr><td>居室装修程度:<select id="indoor_RoomDegree"><option value="1">普通装修</option><option value="2">精美壮美</option></select></td></tr>
                                <tr><td>居室装修情况  :   内墙:    <input type="checkbox" name="room_Wall" value="1" />涂料&nbsp; &nbsp;<input type="checkbox" name="room_Wall" value="2" />壁纸&nbsp; &nbsp;<input type="checkbox" name="room_Wall" value="3" />石材&nbsp; &nbsp;其他<input type="text" id="roomWall_Other" />&nbsp; &nbsp;</td></tr>
                                <tr><td>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; 顶棚:    <input type="checkbox" name="room_Ceiling" value="1" />涂料&nbsp; &nbsp;<input type="checkbox" name="room_Ceiling" value="2" />吊顶&nbsp; &nbsp;其他<input type="text" id="roomCeiling_Other" />&nbsp; &nbsp;</td></tr>
                                <tr><td>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;  地面:    <input type="checkbox" name="room_Ground" value="1" />瓷砖&nbsp; &nbsp;<input type="checkbox" name="room_Ground" value="2" />地砖&nbsp; &nbsp;<input type="checkbox" name="room_Ground" value="3" />石材&nbsp; &nbsp;其他<input type="text" id="roomGround_Other" />&nbsp; &nbsp;</td></tr>


                                <tr><td>卫生间装修程度:<select id="indoor_ToiletDegree"><option value="1">普通装修</option><option>精美装修</option><option>顶级装修</option></select></td></tr>
                                <tr><td>卫生间装修情况  :   内墙:    <input type="checkbox" name="toilet_Wall" value="1" />涂料&nbsp; &nbsp;<input type="checkbox" name="toilet_Wall" value="2" />壁纸&nbsp; &nbsp;<input type="checkbox" name="toilet_Wall" value="3" />石材&nbsp; &nbsp;其他<input type="text" id="toiletWall_Other" />&nbsp; &nbsp;</td></tr>
                                <tr><td>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; 顶棚:    <input type="checkbox" name="toilet_Ceiling" value="1" />涂料&nbsp; &nbsp;<input type="checkbox" name="toilet_Ceiling" value="2" />吊顶&nbsp; &nbsp;其他<input type="text" id="toiletCeiling_Other" />&nbsp; &nbsp;</td></tr>
                                <tr><td>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;  地面:    <input type="checkbox" name="toilet_Ground" value="1" />瓷砖&nbsp; &nbsp;<input type="checkbox" name="toilet_Ground" value="2" />地砖&nbsp; &nbsp;<input type="checkbox" name="toilet_Ground" value="3" />石材&nbsp; &nbsp;其他<input type="text" id="toiletGround_Other" />&nbsp; &nbsp;</td></tr>
                                <tr><td>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;  洁具情况:<input type="checkbox" name="toilet_Sanitary" value="1" />灶台&nbsp; &nbsp;<input type="checkbox" name="toilet_Sanitary" value="2" />成套橱柜&nbsp; &nbsp;其他<input type="text" id="toiletSanitary_Other" /></td></tr>


                                <tr><td>厨房装修程度:<select id="indoor_KitchenDegree"><option value="1">普通装修</option><option>精美装修</option><option>顶级装修</option></select></td></tr>
                                <tr><td>厨房装修情况  :   内墙:    <input type="checkbox" name="kitchen_Wall" value="1" />涂料&nbsp; &nbsp;<input type="checkbox" name="kitchen_Wall" value="2" />壁纸&nbsp; &nbsp;<input type="checkbox" name="kitchen_Wall" value="3" />石材&nbsp; &nbsp;其他<input type="text" id="kitchenWall_Other" />&nbsp; &nbsp;</td></tr>
                                <tr><td>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; 顶棚:    <input type="checkbox" name="kitchen_Ceiling" value="1" />涂料&nbsp; &nbsp;<input type="checkbox" name="kitchen_Ceiling" value="2" />吊顶&nbsp; &nbsp;其他<input type="text" id="kitchenCeiling_Other" />&nbsp; &nbsp;</td></tr>
                                <tr><td>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;  地面:    <input type="checkbox" name="kitchen_Ground" value="1" />瓷砖&nbsp; &nbsp;<input type="checkbox" name="kitchen_Ground" value="2" />地砖&nbsp; &nbsp;<input type="checkbox" value="3" />石材&nbsp; &nbsp;其他<input type="text" id="kitchenGround_Other" />&nbsp; &nbsp;</td></tr>
                                <tr><td>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;  灶台情况:<input type="checkbox" name="kitchen_Cooking" value="1" />灶台&nbsp; &nbsp;<input type="checkbox" name="kitchen_Cooking" value="2" />成套橱柜&nbsp; &nbsp;其他<input type="text" id="kitchenCookingO_ther" /></td></tr>
                                <tr><td>其他<textarea id="indoor_Explain" style="width:300px;height:60px;"></textarea></td></tr>
                            </table>
                        </div>
                        <div class="tab-pane fade in active" id="photos">
                            <div style="width:100%;height:300px" id="imgs">
                                
                            </div>
                        </div>
                        <div class="tab-pane fade  active" id="layers">
                            <table class=" table table-striped">
                                <tr>
                                    <td>编号</td>
                                    <td>建议评估单价</td>
                                    <td>评估内容</td>
                                    <td>评估时间</td>
                                </tr>
                                <tbody id="tds"></tbody>
                            </table>
                        </div>
                    </div>

                </div>
            </div>
        </div>
    </div>
</body>
</html>
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=ui7X2CSu3ITjojARL4tILi5W1i9gkDVS"></script>
<script>

    var urls = "http://localhost:63805/"
    function basic(id) {
        $.ajax({
            url: urls + "api/Basic_info/" + id,
            dataType: "json",
            type: "get",
            success: function (obj) {
                $("#basicinfo").textbox("setValue", obj.projectNumber);//项目号
                $("#basic_LoName").textbox("setValue", obj.loan_Name);//借款人
                $("#basic_LoTel").textbox("setValue", obj.loan_TEL);//电话

                $("#loan_Contacts").textbox("setValue", obj.loan_Contacts);//联系人
                $("#loan_ContactsTEL").textbox("setValue", obj.loan_ContactsTEL);//电话
                $("#surplus_Years").textbox("setValue", obj.surplus_Years);//年限
                $("#basic_Quota").textbox("setValue", obj.basic_Quota);//额度
                $("#basic_Total").textbox("setValue", obj.basic_Total);//交易价
                $("#house_Located").textbox("setValue", obj.house_Located);//卫浴

                $("#house_Purpose").combobox({
                    url: "/single/House_Purpose",
                    valueField: "value",
                    textField: "text",
                    onLoadSuccess: function () {
                        $("#house_Purpose").combobox("setValue", obj.house_Purpose);
                    }
                })//用途
                $("#house_Time").textbox("setValue", obj.house_Time);//年代

                $("#yers_Source").combobox({
                    url: "/single/Yers_Source",
                    valueField: "value",
                    textField: "text",
                    onLoadSuccess: function () {
                        $("#yers_Source").combobox("setValue", obj.yers_Source);
                    }
                });//年代来源
                $("#presentation_Type").combobox({
                    url: "/single/Presentation_Type",
                    valueField: "value",
                    textField: "text",
                    onLoadSuccess: function () {
                        $("#presentation_Type").combobox("setValue", obj.presentation_Type);
                    }
                });//类型
                $("input[type='checkbox']").each(function () {
                    if ($(this).val() == obj.assessment) {
                        $(this).prop("checked", true)
                    }
                })
                //$("#assessment").combobox({
                //    url: "/single/Assessment",
                //    valueField: "value",
                //    textField: "text",
                //    onLoadSuccess : function() {
                //       $("#assessment").combobox("select",obj.assessment );
                //    }
                //});//评估手里
                $("#the_Department").textbox("setValue", obj.department_Name);
                $("#survey").textbox("setValue", obj.users_Name);
                $("#evaluation").textbox("setValue", obj.users_Name);
                $("#issue_Time").textbox("setValue", obj.issue_Time);
                $("#basic_CreateTime").textbox("setValue", obj.basic_CreateTime);

            }
        })
    }//基本信息
    function locations(id) {
        $.ajax({
            url: urls + "apis/Location/getmodel/" + id,
            dataType: "json",
            type: "get",
            success: function (obj) {

                var location_East = $("#location_East").val(obj.location_East);   //东
                var location_South = $("#location_South").val(obj.location_South);   //南
                var location_West = $("#location_West").val(obj.location_West);   //西
                var location_North = $("#location_North").val(obj.location_North);   //北
                var location_Position = $("#Position").val(obj.location_Position);

                var location_Traffic = $("#location_Traffic").val(obj.location_Traffic); //交通情况
                var location_Convenient = $("#location_Convenient").val(obj.location_Convenient); //交通便捷度
                var location_Humanity = $("#location_Humanity").val(obj.location_Humanity); //自然人文环境情况
                var location_Quality = $("#location_Quality").val(obj.location_Quality);   //自然人文环境质量
                var location_Community = $("#location_Community").val(obj.location_Community); //社区成情况
                var location_Mature = $("#location_Mature").val(obj.location_Mature);      //社区成熟情况

                var location_Facilities = $("#location_Facilities").val(obj.location_Facilities);  //基础设施配套情况
                var location_Degree = $("#location_Degree").val(obj.location_Degree);          //基础设施配套度
                var location_Supporting = $("#location_Supporting").val(obj.location_Supporting);   //设施配套
                var location_Explain = $("#location_Explain").val(obj.location_Explain);
            }
        })
    }//区位状况
    function quw(id) {
        $.ajax({
            url: urls + "api/village/" + id,
            dataType: "json",
            type: "get",
            success: function (obj) {
                var village_CaseName = $("#village_CaseName").val(obj.village_CaseName);
                var village_Cause = $("#village_Cause").val(obj.village_Cause);

                var village_Close = $("#village_Close").val(obj.village_Close);
                var village_Structure = $("#village_Structure").val(obj.village_Structure);
                var village_Traffic = $("#village_Traffic").val(obj.village_Traffic);
                var village_Green = $("#village_Green").val(obj.village_Green);

                var village_Volume = $("#village_Volume").val(obj.village_Volume);
                var village_Parking = $("#village_Parking").val(obj.village_Parking);
                var village_Property = $("#village_Property").val(obj.village_Property);
                var village_Explain = $("#village_Explain").val(obj.village_Explain);
            }
        })
    }//小区状况
    function publics(id) {

        $.ajax({
            url: urls + "apis/Floors/getmodel/" + id,
            dataType: "json",
            type: "get",
            success: function (obj) {

                $("#Name").textbox("setValue", obj.floor_Number);
                $("#subject").textbox("setValue", obj.floor_Landmark);
                var map = new BMap.Map("map");                     // 创建Map实例
                var loca = (obj.floor_Landmark).split(',');
                var point = new BMap.Point(loca[0],loca[1]);    // 创建点坐标
                var gc = new BMap.Geocoder();
                map.centerAndZoom(point, 10);                      // 初始化地图,设置中心点坐标和地图级别。
                map.enableScrollWheelZoom();                       //解锁滑轮

                $("#locationss").textbox("setValue", obj.floor_Address);

                $("#number").textbox("setValue", obj.floor_LiftNum);

                $("#jiegou").combobox({
                    url: "/single/structs",
                    valueField: "value",
                    textField: "text",
                    onLoadSuccess: function () {
                        $("#jiegou").combobox("setValue", obj.floor_HouseStructure);
                    }
                })
                $("#type").combobox({
                    url: "/single/types",
                    valueField: "value",
                    textField: "text",
                    onLoadSuccess: function () {
                        $("#type").combobox("setValue", obj.floor_BuildType);
                    }
                })
                $("#outs").combobox({
                    url: "/single/outs",
                    valueField: "value",
                    textField: "text",
                    onLoadSuccess: function () {
                        $("#outs").combobox("setValue", obj.floor_Facade);
                    }
                })
                $("#publics").combobox({
                    url: "/single/publics",
                    valueField: "value",
                    textField: "text",
                    onLoadSuccess: function () {
                        $("#publics").combobox("setValue", obj.floor_Public);
                    }
                })
                $("#dt").combobox({
                    url: "/single/dian",
                    valueField: "value",
                    textField: "text",
                    onLoadSuccess: function () {
                        $("#dt").combobox("setValue", obj.floor_Lift);
                    }
                })

                $("#qi").combobox({
                    url: "/single/gong",
                    valueField: "value",
                    textField: "text",
                    onLoadSuccess: function () {
                        $("#qi").combobox("setValue", obj.floor_Gas);
                    }
                })

                $("#water").combobox({
                    url: "/single/water",
                    valueField: "value",
                    textField: "text",
                    onLoadSuccess: function () {
                        $("#water").combobox("setValue", obj.floor_Water);
                    }
                })

                $("#nuan").combobox({
                    url: "/single/nuan",
                    valueField: "value",
                    textField: "text",
                    onLoadSuccess: function () {
                        $("#nuan").combobox("setValue", obj.floor_Warm);
                    }
                })

                $("#door").combobox({
                    url: "/single/door",
                    valueField: "value",
                    textField: "text",
                    onLoadSuccess: function () {
                        $("#door").combobox("setValue", obj.floor_Door);
                    }
                })

                $("#others").textbox("setValue", obj.floor_Explain);


            }
        })
    }//楼状
    function inoor(id) {
        $.ajax({
            url: urls + "api/Indoor/" + id,
            dataType: "json",
            type: "get",
            success: function (obj) {


                var indoor_Purpose = $("#indoor_Purpose").val(obj.indoor_Purpose);   //房屋实际用途
                var indoor_LayerNum = $("#indoor_LayerNum").val(obj.indoor_LayerNum);   //总楼层
                var indoor_Layer = $("#indoor_Layer").val(obj.indoor_Layer);       //所在楼层
                var indoor_Orientation = $("#indoor_Orientation").val(obj.indoor_Orientation);   //朝向
                var indoor_Residence = $("#indoor_Residence").val(obj.indoor_Residence);   //住宅类型

                var HuXing = $("#HuXing").val(obj.HuXing);   //户型
                var indoor_Bedroom = $("#indoor_Bedroom").val(obj.indoor_Bedroom);   //卧室
                var indoor_Hall = $("#indoor_Hall").val(obj.indoor_Hall);   //客厅
                var indoor_Toilet = $("#indoor_Toilet").val(obj.indoor_Toilet);   //卫生间
                var indoor_Kitchen = $("#indoor_Kitchen").val(obj.indoor_Kitchen);   //厨房
                var indoor_Balcony = $("#indoor_Balcony").val(obj.indoor_Balcony);   //阳台
                //alert(obj.indoor_Terrace)
                var indoor_Terrace = $("#indoor_Terrace").val(obj.indoor_Terrace);   //露台
                var indoor_Yard = $("#indoor_Yard").val(obj.indoor_Yard);   //小院
                var indoor_HallDegree = $("#indoor_HallDegree").val(obj.indoor_HallDegree);   //客厅装修程度

                var living_Wall = $("[name='living_Wall']:checkbox").each(function () {
                    if ($(this).val() == obj.living_Wall) {

                        $(this).prop("checked", true);
                    }
                }) //客厅内墙
                var living_Ceiling = $("[name='living_Ceiling']:checkbox").each(function () {
                    if ($(this).val() == obj.living_Ceiling) {

                        $(this).prop("checked", true);
                    }
                }); //客厅顶棚
                //alert(obj.living_Ground)
                var living_Ground = $("[name='living_Ground']:checkbox").each(function () {
                    if ($(this).val() == obj.living_Ground) {

                        $(this).prop("checked", true);
                    }
                }); //客厅地面

                var indoor_RoomDegree = $("#indoor_RoomDegree").val(obj.indoor_RoomDegree);   //居室装修程度
                var room_Wall = $("[name='room_Wall']:checkbox").each(function () {
                    if ($(this).val() == obj.room_Wall) {

                        $(this).prop("checked", true);
                    }
                }); //居室内墙
                var room_Ceiling = $("[name='room_Ceiling']:checkbox").each(function () {
                    if ($(this).val() == obj.room_Ceiling) {

                        $(this).prop("checked", true);
                    }
                }); //居室顶棚
                var room_Ground = $("[name='room_Ground']:checkbox").each(function () {
                    if ($(this).val() == obj.room_Ground) {

                        $(this).prop("checked", true);
                    }
                }); //居室地面

                var indoor_ToiletDegree = $("#indoor_ToiletDegree").val(obj.indoor_ToiletDegree);   //卫生间装修程度
                var toilet_Wall = $("[name='toilet_Wall']:checkbox").each(function () {
                    if ($(this).val() == obj.toilet_Wall) {

                        $(this).prop("checked", true);
                    }
                }); //卫生间内墙
                var toilet_Ceiling = $("[name='toilet_Ceiling']:checkbox").each(function () {
                    if ($(this).val() == obj.toilet_Ceiling) {

                        $(this).prop("checked", true);
                    }
                }); //卫生间顶棚
                var toilet_Ground = $("[name='toilet_Ground']:checkbox").each(function () {
                    if ($(this).val() == obj.toilet_Ground) {

                        $(this).prop("checked", true);
                    }
                }); //卫生间地面
                var toilet_Sanitary = $("[name='toilet_Sanitary']:checkbox").each(function () {
                    if ($(this).val() == obj.toilet_Sanitary) {

                        $(this).prop("checked", true);
                    }
                }); //卫生间洁具情况

                var indoor_KitchenDegree = $("#indoor_KitchenDegree").val(obj.indoor_KitchenDegree);   //厨房装修程度
                var kitchen_Wall = $("[name='kitchen_Wall']:checkbox").each(function () {
                    if ($(this).val() == obj.kitchen_Wall) {

                        $(this).prop("checked", true);
                    }
                }); //厨房内墙
                var kitchen_Ceiling = $("[name='kitchen_Ceiling']:checkbox").each(function () {
                    if ($(this).val() == obj.kitchen_Ceiling) {

                        $(this).prop("checked", true);
                    }
                }); //厨房顶棚
                var kitchen_Ground = $("[name='kitchen_Ground']:checkbox").each(function () {
                    if ($(this).val() == obj.kitchen_Ground) {

                        $(this).prop("checked", true);
                    }
                }); //厨房地面
                var kitchen_Cooking = $("[name='kitchen_Cooking']:checkbox").each(function () {
                    if ($(this).val() == obj.kitchen_Cooking) {

                        $(this).prop("checked", true);
                    }
                });//厨房灶台情况

                var indoor_Explain = $("#indoor_Explain").val(obj.indoor_Explain);   //有关说明

                var livingWall_Other = $("#livingWall_Other").val(obj.livingWall_Other);   //客厅内墙其他
                var livingCeiling_Other = $("#livingCeiling_Other").val(obj.livingCeiling_Other);   //客厅顶棚其他
                var livingGround_Other = $("#livingGround_Other").val(obj.livingGround_Other);   //客厅地面其他

                var roomWall_Other = $("#roomWall_Other").val(obj.roomWall_Other);   //居室内墙其他
                var roomCeiling_Other = $("#roomCeiling_Other").val(obj.roomCeiling_Other);   //居室顶棚其他
                var roomGround_Other = $("#roomGround_Other").val(obj.roomGround_Other);   //居室地面其他


                var toiletWall_Other = $("#toiletWall_Other").val(obj.toiletWall_Other);   //卫生间内墙其他
                var toiletCeiling_Other = $("#toiletCeiling_Other").val(obj.toiletCeiling_Other);   //卫生间顶棚其他
                var toiletGround_Other = $("#toiletGround_Other").val(obj.toiletGround_Other);   //卫生间地面其他
                var toiletSanitary_Other = $("#toiletSanitary_Other").val(obj.toiletSanitary_Other);   //卫生间洁具其他

                var kitchenWall_Other = $("#kitchenWall_Other").val(obj.kitchenWall_Other);   //厨房内墙其他
                var kitchenCeiling_Other = $("#kitchenCeiling_Other").val(obj.kitchenCeiling_Other);   //厨房顶棚其他
                var kitchenGround_Other = $("#kitchenGround_Other").val(obj.kitchenGround_Other);   //厨房地面其他
                var kitchenCookingO_ther = $("#kitchenCookingO_ther").val(obj.kitchenCookingO_ther);   //厨房灶台其他
            }
        })
    }//室内
    function photo(id) {
        $.ajax({
            url: urls + "api/Photo/" + id,
            dataType: "json",
            type: "get",
            success: function (obj) {
                $("#imgs").empty();
                for (var i = 0; i < obj.length; i++)
                {
                    $("#imgs").append("<div style='float:left;margin-left:50px'><img name='img' src='" + obj[i].photo_Url + "' /><p><label>" + obj[i].photo_Name + "</label></p></div>");
                }
                
            }
        })
    }///图片
    function layer(id)
    {
        $.ajax({
            type: "get",
            url: "http://localhost:63805/apis/Inquiry/InquiryShow?name=" + id,
            success: function (obj) {
                $("#tds").empty();
                for (var i = 0; i < obj.length; i++) {
                    $("#tds").append("<tr><td>" + obj[i].inquiry_Id + "</td><td>" + obj[i].inquiry_UnitPrice + "</td><td>" + obj[i].inquiry_Content + "</td><td>" + obj[i].inquiry_Times + "</td></tr>");
                }
            }
        })
    }
</script>